package models

type PushConfig struct {
	Id             int64
	AlarmConfigId  int64 `xorm:"alarm_config_id"`
	NoticeConfigId int64 `xorm:"notice_config_id"`
	PushWindowSize int64 `xorm:"push_window_size"`
}

func (c PushConfig) PushWindowSizeActual() int64 {
	return c.PushWindowSize + 5
}

func (PushConfig) TableName() string {
	return "alarm_flow.push_config"
}
